package com.example.liu_test.mapper;

import com.example.liu_test.pojo.RespBean;
import com.example.liu_test.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 刘旺
 * @since 2021-07-06
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    void delete(String dr);

    void insertUser(User user);

    void updateUser(User user);
    //测试用（删除）
    @Update(" UPDATE user SET dr = 123 WHERE user_id = #{userId}")
    void sqlDelete(String userId);






}
